# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(BlankScreenDetector)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_CXX_STANDARD 17)# 设置C++标准为17
set(CMAKE_BUILD_TYPE Release)

if(DEFINED PACKAGE_FIND_FILE)
    include(${PACKAGE_FIND_FILE})
endif()

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include)
set(SOURCES
    napi_init.cpp
    src/BlankScreenDetector.cpp
    src/TextLineDetector.cpp
)

add_library(blankdetector SHARED ${SOURCES})
target_link_libraries(blankdetector PUBLIC libomp.a libace_napi.z.so libqos.so libhilog_ndk.z.so)